net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP
authorSantiago Ruano Rincón <santiago.ruano-rincon@imt-atlantique.fr>
Mon, 21 Nov 2022 20:53:05 +0000 (21:53 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 26 Nov 2022 15:06:48 +0000 (15:06 +0000)
commit6596afae467571f847b5e08a3b1c57badd679068
treec346a604d21a0d1b2d16f1b6179c1f204b137c77
parentbbd9045b741552461cdb899f8c6c24ca9e13211f
net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP

Origin: https://git.kernel.org/linus/748064b54c99418f615aabff5755996cd9816969
Bug-Debian: https://bugs.debian.org/1024328

ZLP for DisplayLink ethernet devices was enabled in 6.0:
266c0190aee3 ("net/cdc_ncm: Enable ZLP for DisplayLink ethernet devices").
The related driver_info should be the "same as cdc_ncm_info, but with
FLAG_SEND_ZLP". However, set_rx_mode that enables handling multicast
traffic was missing in the new cdc_ncm_zlp_info.

usbnet_cdc_update_filter rx mode was introduced in linux 5.9 with:
e10dcb1b6ba7 ("net: cdc_ncm: hook into set_rx_mode to admit multicast
traffic")

Without this hook, multicast, and then IPv6 SLAAC, is broken.

Fixes: 266c0190aee3 ("net/cdc_ncm: Enable ZLP for DisplayLink ethernet devices")
Signed-off-by: Santiago Ruano Rincón <santiago.ruano-rincon@imt-atlantique.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name net-cdc_ncm-Fix-multicast-RX-support-for-CDC-NCM-dev.patch
drivers/net/usb/cdc_ncm.c